<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use Notifiable;
    // 表名
    public $table = 'blog_user';
    // 主键id
    public $primaryKey = 'id';
    /**
     * 允许那些字段批量操作
     *
     * @var array
     */
    protected $fillable = [
        'username','password',
    ];
    // 禁止时间戳
    public $timestamps = false;
    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];
}
